package com.smr.micservice.diablomovie.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/test")
public class MovieController {

    @PostMapping("/test")
    public String testSome(String name) {
        log.info("MoiveMoiveMoive:{}", name);
        if ("123".equals(name)) {
            throw new RuntimeException("测试状态");
        } else {
            return "123";
        }
    }
}
